home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
676-700
/
676
/
fbm
/
fbm10man.zoo
/
MAN
/
fbsample.man
< prev
next >
Wrap
Text File
|
1990-12-18
|
4KB
|
133 lines
FBSAMPLE(1) 25-Jun-90 FBSAMPLE(1)
3
1mNAME
0mfbsample \- convert 1bit image to grayscale by sampling
1mSYNOPSIS
0mfbsample [ -t'title' -c'credits' -g'grain' -n'nbr']
[ -<type> ] < bitmap > image
1mDESCRIPTION
0mSamples a 1 bit deep pbm file using a square
neighborhood of the specified size, and outputs an 8 bit
file. You will want to run 3mfbnorm 0mon the output to expand
the scale to 255, and there will be a small loss of
sharpness, so 3mfbsharp 0mwill also be useful. Once you have an
8 bit file, you can resize it arbitrarily, and then convert
it back to a 1 bit file, if need be. The default
neighborhood size is 8 by 8, which gives 65 different gray
levels.
1mOPTIONS
0m-1mg 0m3mgrain 0msize. The sample is taken every 3mgrain 0mpixels.
-1mn 0m3mneighborhood 0msize. The value will be the number of light
pixels in the nearby NxN square. The values can range from
1 to 16.
title'' .bo "-t'title' 3mtitle, 0mspecify a character string (up
to 80 characters) to describe the image. The default is no
title.
credits'' .bo "-c'credits' 3mcredits or subtitle, 0mspecify a
second character string (up to 80 characters) to describe
the image. The default is no credit string.
-1mB 0m3mface 0mformat, as used by Bennet Yee's 3mface 0mprogram at CMU.
-1mF 0m3mFBM, 0mformat (by default, the default). You are
guaranteed not to lose information by specifying FBM as the
default.
-1mG 0m3mGIF, 0mCompuserve GIF format.
-1mI 0m3mIFF 0mformat, interleaved bitmaps (ILBM), used by Amigas.
-1mP 0m3mPBM, 0mJef Poskanzer's bitmap format.
-1mS 0m3msun, 0mSun rasterfiles (not run length encoded).
1mEXAMPLE
0mSuppose you have a 480 by 600 face format file (-B)
that you wish to shrink to 300 by 375 and convert to
PostScript (say for inclusion in your door label). Here's a
pipeline to do that:
-1-
FBSAMPLE(1) 25-Jun-90 FBSAMPLE(1)
% fbsample -n5 -g1 < my.face | \ # sample 5x5
fbnorm -b4 -w1 | # normalize
fbext -w300 | \ # make 300 pixels wide
fbhalf -s20 | \ # halftone and really sharpen
pbm2ps -s 1 > sdoor.ps # convert to postscript
1mSEE ALSO
0mfbnorm(1) to normalize the output, fbm(1) for general
discussion, pbm(1) for PBM routines.
1mBUGS
0mNone known.
1mHISTORY
0mCopyright (C) 1989,1990 by Michael Mauldin. Permission is
granted to use this file in whole or in part for any
purpose, educational, recreational or commercial, provided
that this copyright notice is retained unchanged. This
software is available to all free of charge by anonymous FTP
and in the UUNET archives.
25-Jun-90 Michael Mauldin at Carnegie Mellon University
Release 1.0 mlmcs.cmu.edu
07-Mar-89 Michael L. Mauldin at Carnegie Mellon University
Beta release (version 0.9) mlmcs.cmu.edu
-2-